<?php
/**
 * 武将获取回收日志
 * User: Ltz
 * Date: 2020/4/26 0026
 * Time: 下午 1:10
 */
$gainCodeArr = array(-999 => '-=行为类型=-') + getDiffConfig('origin');
$configArr = config("operate_conf");
 
return array(
    1 => array(
        "title" => "修士日志",
       'table_name' => array("function" => "heroData"),
        "where" => [
            'role_id' => array('name' => '玩家ID','type' => 'text','value' => ''),
            // 'role_name' => array('name' => '角色名','type' => 'text','value' => ''),
            // 'hero_name' => array('name' => '武将名称','type' => 'text','value' => ''),
            "operate" => array("type" => "select","values" => $configArr,"value" => -999),
            // "origin" => array("type" => "select","values" => $gainCodeArr,"value" => -999, "class" => "chosen_select"),
             'time' => array('name' => '时间', 'type' => 'date_time', 'values' => array('start_date' => date('Y-m-d 00:00:00'), 'end_date' => date('Y-m-d 23:59:59'))),
        ],
        "export" => true,
        'show' => array(
            'role_id' => '玩家ID',
            'name' => '角色名',
            // 'item_name' => ['物品名称', "function" => "itemName", "param" => ["field" => "item_id", "config" => "item"]],

            // 'hero_name' => ['修士名称',"function" => "getHeroConfigNew", "param" => 'base_id'],
            'base_id' => '修士id',

            'hero_name' => array("升星修士名称","function" => "itemName","param" => ['field' => 'base_id', 'config' => 'hero_data', 'config_field' => 'name']),
//            'corps' => ['武将兵种', 'function' => 'getTypeName', 'param' => ['config' => 'corps_conf', 'field' => 'corps']],
            // 'star' => '武将星级',
            // 'step' => '武将阶数',
            'type_str' => ['日志类型', "function" => "itemName", "param" => ["field" => "type_str", "config" => "log_type"]],
            'time' => array("时间","function" => "changeDate"),
        )
    ),
);